\doxysection{stm32h7xx\+\_\+ll\+\_\+hsem.\+h}
\hypertarget{stm32h7xx__ll__hsem_8h_source}{}\label{stm32h7xx__ll__hsem_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_ll\_hsem.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_ll\_hsem.h}}
\mbox{\hyperlink{stm32h7xx__ll__hsem_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*\ Define\ to\ prevent\ recursive\ inclusion\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ STM32H7xx\_LL\_HSEM\_H}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ STM32H7xx\_LL\_HSEM\_H}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00024\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{comment}{/*\ Includes\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{stm32h7xx_8h}{stm32h7xx.h}}"{}}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#if\ defined(HSEM)}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \textcolor{comment}{/*\ Private\ types\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00041\ \textcolor{comment}{/*\ Private\ variables\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00042\ \textcolor{comment}{/*\ Private\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00043\ \textcolor{comment}{/*\ Private\ macros\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{comment}{/*\ Exported\ types\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00046\ \textcolor{comment}{/*\ Exported\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_COREID\_NONE\ \ \ \ \ \ \ \ \ \ \ \ \ 0U}}
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_COREID\_CPU1\ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_CR\_COREID\_CPU1}}
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#if\ defined(DUAL\_CORE)}}
\DoxyCodeLine{00058\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_COREID\_CPU2\ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_CR\_COREID\_CPU2}}
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ DUAL\_CORE\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_COREID\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_CR\_COREID\_CURRENT}\textcolor{preprocessor}{}}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_0\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE0}}
\DoxyCodeLine{00072\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_1\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE1}}
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_2\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE2}}
\DoxyCodeLine{00074\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_3\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE3}}
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_4\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE4}}
\DoxyCodeLine{00076\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_5\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE5}}
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_6\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE6}}
\DoxyCodeLine{00078\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_7\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE7}}
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_8\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE8}}
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_9\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE9}}
\DoxyCodeLine{00081\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_10\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE10}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_11\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE11}}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_12\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE12}}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_13\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE13}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_14\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE14}}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_15\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE15}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#if\ (HSEM\_SEMID\_MAX\ ==\ 15)}}
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_ALL\ \ \ \ \ \ \ \ \ \ \ \ \ \ 0x0000FFFFU}}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#else\ }\textcolor{comment}{/*\ HSEM\_SEMID\_MAX\ ==\ 31\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_16\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE16}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_17\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE17}}
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_18\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE18}}
\DoxyCodeLine{00093\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_19\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE19}}
\DoxyCodeLine{00094\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_20\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE20}}
\DoxyCodeLine{00095\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_21\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE21}}
\DoxyCodeLine{00096\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_22\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE22}}
\DoxyCodeLine{00097\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_23\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE23}}
\DoxyCodeLine{00098\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_24\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE24}}
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_25\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE25}}
\DoxyCodeLine{00100\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_26\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE26}}
\DoxyCodeLine{00101\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_27\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE27}}
\DoxyCodeLine{00102\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_28\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE28}}
\DoxyCodeLine{00103\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_29\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE29}}
\DoxyCodeLine{00104\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_30\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE30}}
\DoxyCodeLine{00105\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_31\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ HSEM\_C1IER\_ISE31}}
\DoxyCodeLine{00106\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_SEMAPHORE\_ALL\ \ \ \ \ \ \ \ \ \ \ \ \ \ 0xFFFFFFFFU}}
\DoxyCodeLine{00107\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ HSEM\_SEMID\_MAX\ ==\ 15\ */}\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00115\ }
\DoxyCodeLine{00116\ \textcolor{comment}{/*\ Exported\ macro\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00124\ }
\DoxyCodeLine{00132\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_WriteReg(\_\_INSTANCE\_\_,\ \_\_REG\_\_,\ \_\_VALUE\_\_)\ WRITE\_REG(\_\_INSTANCE\_\_-\/>\_\_REG\_\_,\ (\_\_VALUE\_\_))}}
\DoxyCodeLine{00133\ }
\DoxyCodeLine{00140\ \textcolor{preprocessor}{\#define\ LL\_HSEM\_ReadReg(\_\_INSTANCE\_\_,\ \_\_REG\_\_)\ READ\_REG(\_\_INSTANCE\_\_-\/>\_\_REG\_\_)}\textcolor{preprocessor}{}}
\DoxyCodeLine{00144\ }
\DoxyCodeLine{00148\ }
\DoxyCodeLine{00149\ \textcolor{comment}{/*\ Exported\ functions\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00158\ }
\DoxyCodeLine{00166\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsSemaphoreLocked(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore)}
\DoxyCodeLine{00167\ \{}
\DoxyCodeLine{00168\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gacc121e0df98eda63c3060d308b3bee4e}{HSEM\_R\_LOCK}})\ ==\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_gadc7080671de1ebec942cbefebba507c5}{HSEM\_R\_LOCK\_Msk}}))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00169\ \}}
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00181\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_GetCoreId(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore)}
\DoxyCodeLine{00182\ \{}
\DoxyCodeLine{00183\ \ \ \textcolor{keywordflow}{return}\ (uint32\_t)(READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga45b657d12a503dc9de0be96a2de549a9}{HSEM\_R\_COREID\_Msk}}));}
\DoxyCodeLine{00184\ \}}
\DoxyCodeLine{00185\ }
\DoxyCodeLine{00193\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_GetProcessId(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore)}
\DoxyCodeLine{00194\ \{}
\DoxyCodeLine{00195\ \ \ \textcolor{keywordflow}{return}\ (uint32\_t)(READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga2ae22c7391bb1fa8319194cacb9769d9}{HSEM\_R\_PROCID\_Msk}}));}
\DoxyCodeLine{00196\ \}}
\DoxyCodeLine{00197\ }
\DoxyCodeLine{00209\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_SetLock(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore,\ uint32\_t\ process)}
\DoxyCodeLine{00210\ \{}
\DoxyCodeLine{00211\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacc121e0df98eda63c3060d308b3bee4e}{HSEM\_R\_LOCK}}\ |\ LL\_HSEM\_COREID\ |\ process));}
\DoxyCodeLine{00212\ \}}
\DoxyCodeLine{00213\ }
\DoxyCodeLine{00224\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_2StepLock(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore,\ uint32\_t\ process)}
\DoxyCodeLine{00225\ \{}
\DoxyCodeLine{00226\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacc121e0df98eda63c3060d308b3bee4e}{HSEM\_R\_LOCK}}\ |\ LL\_HSEM\_COREID\ |\ process));}
\DoxyCodeLine{00227\ \ \ \textcolor{keywordflow}{return}\ ((HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore]\ !=\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacc121e0df98eda63c3060d308b3bee4e}{HSEM\_R\_LOCK}}\ |\ LL\_HSEM\_COREID\ |\ process))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00228\ \}}
\DoxyCodeLine{00229\ }
\DoxyCodeLine{00239\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_1StepLock(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore)}
\DoxyCodeLine{00240\ \{}
\DoxyCodeLine{00241\ \ \ \textcolor{keywordflow}{return}\ ((HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_adef549dba3b342ce45e57ae1a5c330d0}{RLR}}[Semaphore]\ !=\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga2f47112c5ceac25e97232be1d235d70b}{HSEM\_RLR\_LOCK}}\ |\ LL\_HSEM\_COREID))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00242\ \}}
\DoxyCodeLine{00243\ }
\DoxyCodeLine{00253\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_ReleaseLock(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore,\ uint32\_t\ process)}
\DoxyCodeLine{00254\ \{}
\DoxyCodeLine{00255\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore],\ (LL\_HSEM\_COREID\ |\ process));}
\DoxyCodeLine{00256\ \}}
\DoxyCodeLine{00257\ }
\DoxyCodeLine{00264\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_GetStatus(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ Semaphore)}
\DoxyCodeLine{00265\ \{}
\DoxyCodeLine{00266\ \ \ \textcolor{keywordflow}{return}\ ((HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab568605bc809dfe668847dd7bc89dc8a}{R}}[Semaphore]\ !=\ 0U)\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00267\ \}}
\DoxyCodeLine{00268\ }
\DoxyCodeLine{00276\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_SetKey(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ key)}
\DoxyCodeLine{00277\ \{}
\DoxyCodeLine{00278\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a41f7be8cb97e115cde34582815fac8c0}{KEYR}},\ key\ <<\ HSEM\_KEYR\_KEY\_Pos);}
\DoxyCodeLine{00279\ \}}
\DoxyCodeLine{00280\ }
\DoxyCodeLine{00287\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_GetKey(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx)}
\DoxyCodeLine{00288\ \{}
\DoxyCodeLine{00289\ \ \ \textcolor{keywordflow}{return}\ (uint32\_t)(READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a41f7be8cb97e115cde34582815fac8c0}{KEYR}},\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gac7c19a443bd3ad1018ae81494eff3d2f}{HSEM\_KEYR\_KEY}})\ >>\ HSEM\_KEYR\_KEY\_Pos);}
\DoxyCodeLine{00290\ \}}
\DoxyCodeLine{00291\ }
\DoxyCodeLine{00304\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_ResetAllLock(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ key,\ uint32\_t\ core)}
\DoxyCodeLine{00305\ \{}
\DoxyCodeLine{00306\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_ab207840b89471c745e4302e2970fed13}{CR}},\ (key\ <<\ HSEM\_CR\_KEY\_Pos)\ |\ core);}
\DoxyCodeLine{00307\ \}}
\DoxyCodeLine{00308\ }
\DoxyCodeLine{00312\ }
\DoxyCodeLine{00316\ }
\DoxyCodeLine{00359\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_EnableIT\_C1IER(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00360\ \{}
\DoxyCodeLine{00361\ \ \ SET\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a69c1de4348244e1e36072b01bbcd0f75}{C1IER}},\ SemaphoreMask);}
\DoxyCodeLine{00362\ \}}
\DoxyCodeLine{00363\ }
\DoxyCodeLine{00406\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_DisableIT\_C1IER(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00407\ \{}
\DoxyCodeLine{00408\ \ \ CLEAR\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a69c1de4348244e1e36072b01bbcd0f75}{C1IER}},\ SemaphoreMask);}
\DoxyCodeLine{00409\ \}}
\DoxyCodeLine{00410\ }
\DoxyCodeLine{00453\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsEnabledIT\_C1IER(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00454\ \{}
\DoxyCodeLine{00455\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a69c1de4348244e1e36072b01bbcd0f75}{C1IER}},\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00456\ \}}
\DoxyCodeLine{00457\ }
\DoxyCodeLine{00458\ \textcolor{preprocessor}{\#if\ defined(DUAL\_CORE)}\textcolor{preprocessor}{}}
\DoxyCodeLine{00499\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_EnableIT\_C2IER(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00500\ \{}
\DoxyCodeLine{00501\ \ \ SET\_BIT(HSEMx-\/>C2IER,\ SemaphoreMask);}
\DoxyCodeLine{00502\ \}}
\DoxyCodeLine{00503\ }
\DoxyCodeLine{00544\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_DisableIT\_C2IER(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00545\ \{}
\DoxyCodeLine{00546\ \ \ CLEAR\_BIT(HSEMx-\/>C2IER,\ SemaphoreMask);}
\DoxyCodeLine{00547\ \}}
\DoxyCodeLine{00548\ }
\DoxyCodeLine{00589\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsEnabledIT\_C2IER(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00590\ \{}
\DoxyCodeLine{00591\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>C2IER,\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00592\ \}}
\DoxyCodeLine{00593\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ DUAL\_CORE\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00594\ }
\DoxyCodeLine{00598\ }
\DoxyCodeLine{00602\ }
\DoxyCodeLine{00645\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_ClearFlag\_C1ICR(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00646\ \{}
\DoxyCodeLine{00647\ \ \ WRITE\_REG(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_adbebccb559027a2b858a3c85cc0b224a}{C1ICR}},\ SemaphoreMask);}
\DoxyCodeLine{00648\ \}}
\DoxyCodeLine{00649\ }
\DoxyCodeLine{00692\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsActiveFlag\_C1ISR(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00693\ \{}
\DoxyCodeLine{00694\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a69174dfb50f2b0b06ed8ac999982f3b9}{C1ISR}},\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00695\ \}}
\DoxyCodeLine{00696\ }
\DoxyCodeLine{00739\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsActiveFlag\_C1MISR(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00740\ \{}
\DoxyCodeLine{00741\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>\mbox{\hyperlink{struct_h_s_e_m___type_def_a93c90ca6f26ab1e3ae5d027761d41537}{C1MISR}},\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00742\ \}}
\DoxyCodeLine{00743\ }
\DoxyCodeLine{00744\ \textcolor{preprocessor}{\#if\ defined(DUAL\_CORE)}\textcolor{preprocessor}{}}
\DoxyCodeLine{00785\ \_\_STATIC\_INLINE\ \textcolor{keywordtype}{void}\ LL\_HSEM\_ClearFlag\_C2ICR(\mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00786\ \{}
\DoxyCodeLine{00787\ \ \ WRITE\_REG(HSEMx-\/>C2ICR,\ SemaphoreMask);}
\DoxyCodeLine{00788\ \}}
\DoxyCodeLine{00789\ }
\DoxyCodeLine{00830\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsActiveFlag\_C2ISR(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00831\ \{}
\DoxyCodeLine{00832\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>C2ISR,\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00833\ \}}
\DoxyCodeLine{00834\ }
\DoxyCodeLine{00875\ \_\_STATIC\_INLINE\ uint32\_t\ LL\_HSEM\_IsActiveFlag\_C2MISR(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_h_s_e_m___type_def}{HSEM\_TypeDef}}\ *HSEMx,\ uint32\_t\ SemaphoreMask)}
\DoxyCodeLine{00876\ \{}
\DoxyCodeLine{00877\ \ \ \textcolor{keywordflow}{return}\ ((READ\_BIT(HSEMx-\/>C2MISR,\ SemaphoreMask)\ ==\ (SemaphoreMask))\ ?\ 1UL\ :\ 0UL);}
\DoxyCodeLine{00878\ \}}
\DoxyCodeLine{00879\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ DUAL\_CORE\ */}\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00883\ }
\DoxyCodeLine{00887\ }
\DoxyCodeLine{00891\ }
\DoxyCodeLine{00892\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ defined(HSEM)\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00893\ }
\DoxyCodeLine{00897\ }
\DoxyCodeLine{00898\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00899\ \}}
\DoxyCodeLine{00900\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00901\ }
\DoxyCodeLine{00902\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_\_STM32H7xx\_LL\_HSEM\_H\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
